import { http } from '@/utils/request'

// 轮播图
export const ApiGetBanner = () => {
    return http({
        url: '/homeBanner'
    })
}
// 每日推荐
export const ApiGetDay = () => {
    return http({
        url: '/randomWall'
    })
}
// 公告
export const ApiGetNotice = (data) => {
    return http({
        url: '/wallNewsList',
        data
    })
}
// 获取公告详情
export const ApiGetNoticeDetail = (data) => {
    return http({
        url:'/wallNewsDetail',
        data
    })
}
// 首页分类
export const ApiGetClassify = (data) => {
    return http({
        url: '/classify',
        data
    })
}
// 分类
export const ApigetClassList = (data = {}) => {
    return http({
        url: '/wallList',
        data
    })
}


// 新闻咨询详情
export const ApiGetDetail = (id) => {
    return http({
        url: '/wallNewsDetail',
        data: {
            id
        }
    })
}
// 评分
export const ApiSetupScore = (data) => {
    return {
        url: '/setupScore',
        data
    }
}

// 下载
export const ApiSetDownload = (data) => {
    return http({
        url: '/downloadWall',
        data
    })
}
// 分享 详情页
export const ApiDetail = (data) => {
    return http({
        url: '/detailWall',
        data
    })
}
// 个人信息
export const ApiGetUserInfo = () => {
    return http({
        url: '/userInfo'
    })
}

export const ApigetHistoryList = (data = {}) => {
    return http({
        url: '/userWallList',
        data
    })
}
// 搜索数据
export const ApiSearch = (data) => {
    return http({
        url: '/searchWall',
        data
    })
}